home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-25 | 1.0 KB | 56 lines | [TEXT/MPS ] |
- {IconEdit.p}
- {copyright © 1989 by Apple Computer, Inc. All rights reserved.}
-
- PROGRAM IconEdit;
-
- USES
- UMacApp;
-
-
- CONST kFileType = 'IDOC';
- kSignature = 'ICED';
-
-
-
- { Type definitions }
-
- TYPE
- TIconApplication = OBJECT(TApplication)
-
- PROCEDURE TIconApplication.IIconApplication(iconFileType: OSType);
- {Initializes the application and globals.}
-
- END;
-
-
-
- { Method definitions }
-
- PROCEDURE TIconApplication.IIconApplication(iconFileType: OSType);
-
- BEGIN
- IApplication(iconFileType);
- END;
-
-
-
- { Global variables }
-
- VAR
- gIconApplication: TIconApplication;
-
-
-
- { the main routine }
-
- BEGIN
- InitToolBox; { Essential toolbox and utilities initialization }
- InitUMacApp(8); { Initialize MacApp with 8 calls to MoreMasters. }
-
- New(gIconApplication); { Create a new TIconEditApplication object. }
- FailNIL(gIconApplication); { Make sure New didn't fail. }
- gIconApplication.IIconApplication(kFileType); { Initialize the new object. }
-
- gIconApplication.Run; { Run the application. When it's done, exit. }
- END.
-